package com.example.p7;
import java.util.*;

/**
 * @author Lenovo
 */
public class RunoobTest {
    static void reverse(Integer a[]){
        Collections.reverse(Arrays.asList(a));
        System.out.println(Arrays.asList(a));
    }
    public static void main(String[] args) {
        Integer [] arr = {10,20,30,40,50};
        reverse(arr);
    }
}
